package cn.wen.yaling.xo.service;

import cn.wen.yaling.commons.utils.ResultEntity;
import cn.wen.yaling.commons.vo.ConfigVO;
import cn.wen.yaling.commons.vo.WebConfigVO;
import com.baomidou.mybatisplus.extension.service.IService;
import cn.wen.yaling.commons.utils.PageUtils;
import cn.wen.yaling.commons.entity.WebConfigEntity;

import java.util.Map;

/**
 * 
 *
 * @author FY
 * @email 932043654@qq.com
 * @date 2022-08-13 02:07:36
 */
public interface WebConfigService extends IService<WebConfigEntity> {

    PageUtils queryPage(Map<String, Object> params);

    /**
     * 获取系统配置信息
     * @return
     */
    ConfigVO getConfigInfoIsActive();

    /**
     * 增加访问量
     */
    void addConfigViews();

    /**
     * 获取首页的配置信息
     * @return
     */
    Map<String, Object> getWebVisitByWeek();

    /**
     * 获取总浏览量
     * @return
     */
    Long getWebVisitCount();

    ResultEntity editWebConfig(WebConfigVO webConfigVO);
}

